#ifndef						__DECODER_H__
# define					__DECODER_H__

#include					<iostream>
#include					"packet.h"
#include					"SoundPacket.h"
#include					<opus/opus.h>
#include					<map>

class						Decoder
{
public:
	Decoder();
	~Decoder();

private:
	std::map<unsigned int, OpusDecoder*>	_dec;
	int						_channel;

public:
	virtual void			addState(unsigned int);
	virtual void			removeState(unsigned int);
	virtual void			decode(Packet*, SoundPacket*, unsigned int);

};

#endif						// !__DECODER_H__
